package com.unittec.drainage.gateway.common;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @author wuxinwei
 */
public class GateWayConstants {

    public static final String CANRUN = "canrun";

    public static final String SERVICEMETHED = "servicemethod";

    public static final String SERVICECONTENT = "servicecontent";

    public static final String REQ_START_TIME = "req_starttime";

    // 应用鉴权服务地址
    public static final String APPAUTHURL = "http://drainage-auth-101/101501";

    // 用户鉴权服务地址
    public static final String USERAUTHURL = "http://drainage-auth-101/101703";

    // 接口限流服务地址
    public static final String APPLIMITURL = "http://drainage-auth-101/10007";

    // 校验菜单权限编码
    public static final String CHECK_METHOD_AUTH_URL = "http://drainage-auth-101/101705";

    // 根据用户ID查询用户详情
    public static final String AUTH_101801 = "http://drainage-auth-101/101801";

    // 根据用户ID查询用户详情
    public static final String AUTH_101106 = "http://drainage-auth-101/101106";

    // 推送消息
    public static final String INTERFACE_125807 = "125807";

    //按钮权限校验接口
    public static final String INTERFACE_101705 = "101705";
    // 新用户注册和新应用开通，不走正常的鉴权流程，网关只是转发一下
    // 注册用户 10023 ，激活用户 10032 ，增加应用91403
    public static final List<String> IGORE_METHOD = Lists.newArrayList("10023", "10032", "91403");
}
